import React from 'react'
import { NavBar, Space, Toast } from 'antd-mobile'
import { useNavigate } from 'react-router-dom'
import useAunt from '../hooks/useAunt'
function My() {
  let {isLogin} = useAunt()

    let nav = useNavigate()
    let avatar = localStorage.getItem('avatar')
    let username = localStorage.getItem('username')
    const back = () => {
        nav('/home')
    }
    return (
        <div>
            <NavBar onBack={back}>我的页面</NavBar>
            <img style={{ width: '50px' }} src={avatar} alt="" />
            <span style={{ fontSize: '26px' }}>{username}</span>
            <button></button>
        </div>
    )
}

export default My
